package com.scorpio.agentuser.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UpdatePassword2Vo {
    @NotNull(message = "非法操作")
    private Long agentId;

    @Pattern(regexp = "^[0-9A-Za-z]{6,20}$", message = "密码限制6-20位英文或数字")
    @NotBlank(message = "密码有误")
    private String password;
}
